//
//  PieChartVC.h
//  Wallets Manager
//
//  Created by Nguyen Chi Cong on 10/21/12.
//  Copyright (c) 2012 BKHN. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SVSegmentedControl.h"

@interface PieChartVC : UIViewController < CPTPieChartDataSource, CPTPlotDataSource,CPTPieChartDelegate, UIActionSheetDelegate>

@property (strong, nonatomic) IBOutlet CPTGraphHostingView *hostView;
@property (weak, nonatomic) IBOutlet UIButton *btnShow;
@property (weak, nonatomic) IBOutlet UISegmentedControl *segSelector;
@property (strong, nonatomic) NSArray *listSymbols;
@property (strong, nonatomic) NSArray *valueOfSymbols;
@property (strong, nonatomic) NSMutableArray *listColor;


-(IBAction)backPreviousView:(id)sender;
-(IBAction)showLegend:(id)sender;
-(IBAction)switchType:(id)sender;

-(void)initPlot;
-(void)configureHost;
-(void)configureGraph;
-(void)configureChart;
-(void)configureLegend;

- (void)segmentedControlChangedValue:(SVSegmentedControl*)segmentedControl;

-(void)loadIncome;
-(void)loadExpense;

@end
